Optimal. Leaf size=74 \[ -\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}}-\frac {6 \cot (x)}{35 a \left (a \csc ^2(x)\right )^{5/2}}-\frac {8 \cot (x)}{35 a^2 \left (a \csc ^2(x)\right )^{3/2}}-\frac {16 \cot (x)}{35 a^3 \sqrt {a \csc ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4207, 198, 197}
\begin {gather*} -\frac {16 \cot (x)}{35 a^3 \sqrt {a \csc ^2(x)}}-\frac {8 \cot (x)}{35 a^2 \left (a \csc ^2(x)\right )^{3/2}}-\frac {6 \cot (x)}{35 a \left (a \csc ^2(x)\right )^{5/2}}-\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 197
Rule 198
Rule 4207
Rubi steps
\begin {align*} \int \frac {1}{\left (a \csc ^2(x)\right )^{7/2}} \, dx &=-\left (a \text {Subst}\left (\int \frac {1}{\left (a+a x^2\right )^{9/2}} \, dx,x,\cot (x)\right )\right )\\ &=-\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}}-\frac {6}{7} \text {Subst}\left (\int \frac {1}{\left (a+a x^2\right )^{7/2}} \, dx,x,\cot (x)\right )\\ &=-\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}}-\frac {6 \cot (x)}{35 a \left (a \csc ^2(x)\right )^{5/2}}-\frac {24 \text {Subst}\left (\int \frac {1}{\left (a+a x^2\right )^{5/2}} \, dx,x,\cot (x)\right )}{35 a}\\ &=-\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}}-\frac {6 \cot (x)}{35 a \left (a \csc ^2(x)\right )^{5/2}}-\frac {8 \cot (x)}{35 a^2 \left (a \csc ^2(x)\right )^{3/2}}-\frac {16 \text {Subst}\left (\int \frac {1}{\left (a+a x^2\right )^{3/2}} \, dx,x,\cot (x)\right )}{35 a^2}\\ &=-\frac {\cot (x)}{7 \left (a \csc ^2(x)\right )^{7/2}}-\frac {6 \cot (x)}{35 a \left (a \csc ^2(x)\right )^{5/2}}-\frac {8 \cot (x)}{35 a^2 \left (a \csc ^2(x)\right )^{3/2}}-\frac {16 \cot (x)}{35 a^3 \sqrt {a \csc ^2(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 42, normalized size = 0.57 \begin {gather*} \frac {(-1225 \cos (x)+245 \cos (3 x)-49 \cos (5 x)+5 \cos (7 x)) \sqrt {a \csc ^2(x)} \sin (x)}{2240 a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 45, normalized size = 0.61
method | result | size |
default | \(\frac {\sin \left (x \right ) \left (5 \left (\cos ^{3}\left (x \right )\right )-20 \left (\cos ^{2}\left (x \right )\right )+29 \cos \left (x \right )-16\right ) \sqrt {4}}{70 \left (\cos \left (x \right )-1\right )^{4} \left (-\frac {a}{\cos ^{2}\left (x \right )-1}\right )^{\frac {7}{2}}}\) | \(45\) |
risch | \(\frac {i {\mathrm e}^{8 i x}}{896 a^{3} \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}-\frac {35 i {\mathrm e}^{2 i x}}{128 a^{3} \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}-\frac {35 i}{128 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) a^{3}}+\frac {7 i {\mathrm e}^{-2 i x}}{128 a^{3} \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}-\frac {11 i \cos \left (6 x \right )}{1120 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) a^{3}}+\frac {27 \sin \left (6 x \right )}{2240 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) a^{3}}+\frac {7 i \cos \left (4 x \right )}{160 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) a^{3}}-\frac {21 \sin \left (4 x \right )}{320 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) a^{3}}\) | \(303\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.16, size = 43, normalized size = 0.58 \begin {gather*} \frac {{\left (5 \, \cos \left (x\right )^{7} - 21 \, \cos \left (x\right )^{5} + 35 \, \cos \left (x\right )^{3} - 35 \, \cos \left (x\right )\right )} \sqrt {-\frac {a}{\cos \left (x\right )^{2} - 1}} \sin \left (x\right )}{35 \, a^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 11.73, size = 68, normalized size = 0.92 \begin {gather*} - \frac {16 \cot ^{7}{\left (x \right )}}{35 \left (a \csc ^{2}{\left (x \right )}\right )^{\frac {7}{2}}} - \frac {8 \cot ^{5}{\left (x \right )}}{5 \left (a \csc ^{2}{\left (x \right )}\right )^{\frac {7}{2}}} - \frac {2 \cot ^{3}{\left (x \right )}}{\left (a \csc ^{2}{\left (x \right )}\right )^{\frac {7}{2}}} - \frac {\cot {\left (x \right )}}{\left (a \csc ^{2}{\left (x \right )}\right )^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 76, normalized size = 1.03 \begin {gather*} \frac {32 \, \mathrm {sgn}\left (\sin \left (x\right )\right )}{35 \, a^{\frac {7}{2}}} - \frac {32 \, {\left (\frac {7 \, {\left (\cos \left (x\right ) - 1\right )}}{\cos \left (x\right ) + 1} - \frac {21 \, {\left (\cos \left (x\right ) - 1\right )}^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + \frac {35 \, {\left (\cos \left (x\right ) - 1\right )}^{3}}{{\left (\cos \left (x\right ) + 1\right )}^{3}} - 1\right )}}{35 \, a^{\frac {7}{2}} {\left (\frac {\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} - 1\right )}^{7} \mathrm {sgn}\left (\sin \left (x\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (\frac {a}{{\sin \left (x\right )}^2}\right )}^{7/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________